import { BasicPageParams, BasicFetchResult } from '@/api/model/baseModel';

export interface TemplateInfo {
  id: number;
  name: string;
  desc: string;
  cover: string;
  status: number; // 10代表active，20代表inactive
}

export interface TemplateParams extends BasicPageParams {
  name?: string;
  status?: number;
}

export interface TemplateListGetResultModel extends BasicFetchResult<TemplateInfo> {}

// Request Types
export interface TemplateAddReq {
  name: string;
  desc: string;
  cover: string;
  status: number;
}

export interface TemplateEditReq extends TemplateAddReq {
  id: number;
}

export interface TemplateDelReq {
  id: number;
}
